<?php

$name = 'scg_' . md5 ($href);
if (false === ($value = get_transient ($name))) {
    $response = wp_remote_get ($href);
    if (!is_wp_error ($response)) {
        $value = trim ($response['body']);
        if (!empty ($value)) {
            set_transient ($name, $value, 86400);
        }
    }
}

?>
